home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
awe2-0_1.lha
/
awe2-0.1
/
Src
/
RCS
/
LockedFifo.cc,v
< prev
next >
Wrap
Text File
|
1989-02-20
|
2KB
|
132 lines
head 3.2;
branch ;
access ;
symbols ;
locks ; strict;
comment @@;
3.2
date 89.02.20.15.35.42; author grunwald; state Exp;
branches ;
next 3.1;
3.1
date 88.12.20.13.48.55; author grunwald; state Exp;
branches ;
next 1.2;
1.2
date 88.10.30.13.04.30; author grunwald; state Exp;
branches ;
next 1.1;
1.1
date 88.09.18.16.42.25; author grunwald; state Exp;
branches ;
next ;
desc
@@
3.2
log
@Start using Gnu library heaps for schedulers
@
text
@// This may look like C code, but it is really -*- C++ -*-
//
// Copyright (C) 1988 University of Illinois, Urbana, Illinois
//
// written by Dirk Grunwald (grunwald@@cs.uiuc.edu)
//
#include "LockedFifo.h"
#include "stream.h"
void
LockedFifo::add(AwesimeFifoItem* t)
{
fifoLock.reserve();
AwesimeFifo::add(t);
fifoLock.release();
}
bool
LockedFifo::remove(AwesimeFifoItem *t)
{
fifoLock.reserve();
bool ok = AwesimeFifo::remove(t);
fifoLock.release();
return(ok);
}
bool
LockedFifo::removeIfFound(AwesimeFifoItem *t)
{
fifoLock.reserve();
bool ok = AwesimeFifo::removeIfFound(t);
fifoLock.release();
return(ok);
}
bool
LockedFifo::doStart(AwesimeFifoIndex &index, AwesimeFifoItem* item)
{
fifoLock.reserve();
return( AwesimeFifo::doStart(index, item) );
}
void
LockedFifo::doDone()
{
fifoLock.release();
}
unsigned int
LockedFifo::size()
{
fifoLock.reserve();
unsigned int s = AwesimeFifo::size();
fifoLock.release();
return(s);
}
void LockedFifo::classPrintOn(ostream& s)
{
fifoLock.reserve();
AwesimeFifo::classPrintOn(s);
fifoLock.release();
}
@
3.1
log
@Steay version
@
text
@d62 1
a62 1
s << * ((AwesimeFifo *) this) ;
@
1.2
log
@*** empty log message ***
@
text
@@
1.1
log
@Initial revision
@
text
@d1 6
@